#ifndef __MONSTER_H_
#define __MONSTER_H_
#include<MyString.h>
#include <DynamicArray.h>
#include "Scene.h"
struct monster
{
    MyStr name;
    int HP;
    int attack;
    int defence;
    int x;
    int y;
    char* symbol;
    int exp;
    int Gold;
};
typedef struct monster Monster;
Monster * CreateMonster(const char* name,int HP,int attack,int defence,char* symbol,int exp,int Gold);
void FreeMonster(void *ptr);
void SetMonsters(DArray *ms);
void SetMonstersPosition(DArray *ms,char* (*map)[MAPSIZE]);
Monster* GetMonsterByPosition(DArray*ms,int x,int y);

MyStr MonsterToString(DArray *ms);

#endif